#include <iostream>
#include "Component.h"
#include "Decorator.h"

int main() {
    ConcreteComponent* c = new ConcreteComponent();
    ConcreteDecoratorA* d1 = new ConcreteDecoratorA();
    ConcreteDecoratorB* d2 = new ConcreteDecoratorB();

    d1->SetComponent(c);
    d2->SetComponent(d1);
    d2->Operation();
    
    return 0;
}

/*
具体的操作对象
具体装饰对象A的操作
具体装饰对象B的操作
*/